
######################################################
#
# boot cmd:
#   docker run -it --rm --privileged image_name:tag init
#   docker exec -it container_name bash
#   vncserver :81
#   DISPLAY=:81 xfce-session
# 
######################################################

# base image

# FROM opensuse:tumbleweed
FROM koyst-opensuse-base:tumbleweed

MAINTAINER ystlong@163.com

RUN find /etc/zypp/repos.d -type f -exec sed -i 's|download.opensuse.org/tumbleweed|mirrors.ustc.edu.cn/opensuse/tumbleweed|g' {} \;
RUN zypper in -y -t pattern xfce
RUN zypper in -y xfce4-terminal
RUN zypper in -y wqy*fonts
RUN zypper in -y fcitx fcitx-googlepinyin

RUN zypper in -y wine
RUN zypper in -y tigervnc-x11vnc tigervnc
RUN zypper in -y iproute2
RUN zypper in -y net-tools-deprecated
RUN zypper in -y command-not-found
RUN zypper in -y vi

CMD vncserver :1
CMD DISPLAY=:1 xfce-session

WORKDIR /root

